package lesson03;

import java.io.IOException;
import java.io.PrintWriter;
import java.net.Socket;

public class Client02 {

    public static void main(String[] args) throws IOException {
        Socket chatSocket = new Socket("127.0.0.1", 9999);

        PrintWriter writer = new PrintWriter(chatSocket.getOutputStream());
        writer.println("message to send");
        writer.print("another message:");
        writer.close();
    }
}
